package com.example.bootintegration.datasource;

import org.springframework.beans.factory.FactoryBean;

class DelegateFactoryBean<T> implements FactoryBean<T> {
    private FactoryBean<T> delegate;

    public DelegateFactoryBean(FactoryBean<T> delegate) {
        this.delegate = delegate;
    }

    @Override
    public T getObject() throws Exception {
        return this.delegate.getObject();
    }

    @Override
    public Class<?> getObjectType() {
        return this.delegate.getObjectType();
    }
}